package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tbCustomerIssues", description="可会回答试卷实体类")
@TableName(value = "tb_customer_issues")
public class TbCustomerIssues implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问答表ID")
    @TableId(value = "id", type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    @ApiModelProperty(value = "所属模块")
    @TableField(value = "submodule")
    private String submodule;

    @ApiModelProperty(value = "问题")
    @TableField(value = "question")
    private String question;

    @ApiModelProperty(value = "答案")
    @TableField(value = "answer")
    private String answer;

    @ApiModelProperty(value = "添加时间")
    @TableField(value = "addtime")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime addtime;


}
